package o;

import android.content.Context;
import android.text.TextUtils;
import com.huawei.appgallery.appcomment.api.CommentReplyActivityProtocol;
import com.huawei.appgallery.appcomment.api.CommentReplyActivityProtocol.Request;
import com.huawei.appgallery.foundation.account.bean.UserSession;

public class eep implements cue<cuk> {
    private Context ˋ;
    private cuk ॱ = null;

    public /* synthetic */ void ˋ(Context context, Object obj) {
        ˎ(context, (cuk) obj);
    }

    public void ˎ(Context context, cuk o_cuk) {
        Logger.ˎ("ReplayMessageViewHandler", "ReplayMessageViewHandler execute");
        this.ˋ = context;
        this.ॱ = o_cuk;
        if (!TextUtils.isEmpty(o_cuk.ˎ()) && !TextUtils.isEmpty(o_cuk.ʼॱ())) {
            if (UserSession.getInstance().isLoginSuccessful()) {
                ॱ(o_cuk);
                return;
            }
            eoj.ˋ().ˎ("ReplayMessageViewHandler", new AccountBussinessListener(this) {
                final /* synthetic */ eep ˊ;

                {
                    this.ˊ = r1;
                }

                public void onAccountBusinessResult(ccp o_ccp) {
                    if (102 == o_ccp.ˎ) {
                        this.ˊ.ॱ(this.ˊ.ॱ);
                    }
                    eoj.ˋ().ˊ("ReplayMessageViewHandler");
                }
            });
            eod.ॱ(ContentManager.getInstant().getContext());
        }
    }

    private void ॱ(cuk o_cuk) {
        cjo commentReplyActivityProtocol = new CommentReplyActivityProtocol();
        Request request = new Request();
        request.ˊ(o_cuk.ʼॱ());
        request.ˏ(o_cuk.ˎ());
        commentReplyActivityProtocol.ˏ(request);
        cjm o_cjm = new cjm("appdetailreply.activity", commentReplyActivityProtocol);
        o_cjm.ॱ(this.ˋ).setFlags(335544320);
        cjk.ˎ().ˋ(this.ˋ, o_cjm);
    }
}
